package justcents.games.andengine.screen;

import justcents.game.sticks.Main;

import org.anddev.andengine.entity.scene.Scene;
import org.anddev.andengine.opengl.font.Font;
import org.anddev.andengine.opengl.texture.Texture;
import org.anddev.andengine.opengl.texture.atlas.bitmap.BitmapTextureAtlasTextureRegionFactory;


public class SceneManager {
	
	private static Main core;
    
    public static void init(Main base)
    {
            core = base;
            BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/");
    }
   
    /**
     * setScene() is the function we'll be using to switch from one
     * screen to another.
     */
    public static void setScene(Scene scene)
    {
            core.getEngine().setScene(scene);
    }
   
    public static void loadTexture(Texture texture)
    {
            core.getEngine().getTextureManager().loadTexture(texture);
    }
   
    public static void loadFont(Font font)
    {
            core.getEngine().getFontManager().loadFont(font);
    }
}
